package com.galaxy.order.api;

import com.galaxy.common.core.domain.R;
import com.galaxy.order.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * 商品服务接口
 */
@FeignClient(
    contextId = "remoteCouponService",
    value = "galaxy-coupon",
    fallbackFactory = RemoteCouponFallbackFactory.class,
    configuration = FeignConfig.class
)
public interface RemoteCouponService {

    /**
     * 修改优惠卷
     *
     * @param orderNo 订单编号
     * @return 商品信息
     */
    @PutMapping("/api/user/{orderNo}")
    R<Boolean> update(@PathVariable("orderNo") String orderNo);
}
